package com.yc.damai.web.feign.Impl;

import com.yc.damai.entity.DmProduct;
import com.yc.damai.web.feign.OtherAction;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


@Component
public class OtherActionImpl implements OtherAction {


    //TODO:缓存数据： 扩展为  Redis缓存
   private  Map<String, List<DmProduct>>  cacheNewAndHot;

    public void setCacheNewAndHot(Map<String, List<DmProduct>> cacheNewAndHot) {
        this.cacheNewAndHot = cacheNewAndHot;
    }

    @Override
    public Map<String, List<DmProduct>> queryNewAndHot() {
        return cacheNewAndHot;
    }
}
